package Socket;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;

import static java.lang.System.out;

public class Client{
    private Socket socket;
    public Client(){
        try {
            System.out.println("正在链接服务端...");
            socket=new Socket("localhost",8888);
            System.out.println("服务端已链接...");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    public void start(){
    }
    public static void main(String[] args) {
        Client client=new Client();
        client.start();
    }
}
